myApp.controller('centerController', function ($rootScope, $location) {
    $rootScope.userListPage = function () {
        $location.path('/user/view');
    };
    $rootScope.roleListPage = function () {
        $location.path('/role/view');
    };
    $rootScope.welcomePage = function () {
        $location.path('/welcome');
    };
});